import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from 'axios'
// reset.css
import './assets/css/reset.css'
import Vant, { Lazyload } from 'vant'
import ImageView from './components/ImageView.vue'
import 'vant/lib/index.css'

Vue.component('ImageView', ImageView)
Vue.use(Lazyload)
// 注册时可以配置额外的选项
Vue.use(Lazyload, {
  lazyComponent: true,
})

Vue.use(Vant)
Vue.config.productionTip = false
// 将axios绑定在原型上，以后就可以通过this来访问这个方法了
Vue.prototype.$http = axios

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount('#app')
